<div class="container-fluid">
<div class="row clearfix">
    <div class="col-md-12 column">
        <div class="page-header">
            <h1>
                权限管理
                <small>后台菜单授权管理 </small>
            </h1>
        </div>
        <form method="post" id="rulesForm" action="/admin/role/menuInRole">
        <input type="hidden" name="roleId" value="{{roleId}}"/>
        <div class="list-group">
            {% for record in records %}
            <div class="list-group-item active">
                模块:{{ record.module }}
            </div>

            <div class="list-group-item">
                {% for item in record.items %}
                <label>
                <input type="checkbox" name="rules" {%  if item.authed %}checked{% endif %} value="{{ item.id }}"/>
                {{ item.title }}
                </label>
                {% endfor %}
            </div>
            {% endfor %}
        </div>
        </form>
    </div>
</div>
</div>